#!/bin/sh

$HADOOP_HOME/bin/hadoop fs -rmr output/failurecause/pig/$1
java -cp $PIG_CLASSPATH org.apache.pig.Main -param inputDir=/user/hadoop/input/$1/event_trace -param outputDir=output/failurecause/pig/$1 -x mapreduce failurecause.pig
$HADOOP_HOME/bin/hadoop fs -cat output/failurecause/pig/$1/part-00000

